package edu.zju.gis.dbfg.fileserver.model;

import edu.zju.gis.dbfg.common.base.BaseEntity;
import edu.zju.gis.dbfg.fileserver.util.DateUtil;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class LoaderMonitor extends BaseEntity<String> implements Jsonable {
    private String datasetname;
    private Date createtime;
    private Integer successnumb;
    private Integer errornumb;
    private String status;
    private String logs;
    private String userId;

    @Override
    public String getPk_id() {
        return this.id;
    }
    public LoaderMonitor() {
      this.datasetname="";
        this.createtime=DateUtil.now();
        this.successnumb=0;
        this.errornumb=0;
        this.status="Loading";
        this.logs="";
       this.userId="";
    }
}
